package com.qingcheng.service.order;

import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.order.Order;

import java.util.List;
import java.util.Map;

/**
 * order业务逻辑层
 */
public interface OrderService {


    public List<Order> findAll();


    public PageResult<Order> findPage(int page, int size);


    public List<Order> findList(Map<String, Object> searchMap);


    public PageResult<Order> findPage(Map<String, Object> searchMap, int page, int size);


    public Order findById(String id);


    public Map<String,Object> add(Order order);


    public void update(Order order);


    public void delete(String id);
    /**
     * 批量发货
     * @param orders
     */
    public void batchSend(List<Order> orders);
    /**
     * 订单超时处理逻辑
     */
    public void orderTimeOutLogic();
    /**
     * 修改订单状态
     * @param orderId
     * @param transactionId
     */
    public void updatePayStatus(String orderId, String transactionId);

    /**
     * 超时未支付
     * @param orderId
     */
    public void  chaoshiPay(String orderId);

}
